package com.nahan.secondapplication.LottieAnimation;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.nahan.secondapplication.R;

public class CustomFragment3 extends Fragment {

    private TextView custom;

    public CustomFragment3() {
        // Required empty public constructor
    }

    public static CustomFragment3 newInstance(String param1) {
        CustomFragment3 fragment = new CustomFragment3();
        Bundle args = new Bundle();
        args.putString("name", param1);
        fragment.setArguments(args);
        return fragment;
    }


    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        if (getArguments() != null) {
            custom.setText(getArguments().getString("name"));

        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_custom3, container, false);
        custom=view.findViewById(R.id.custom);
        return view;
    }
}
